libxl: libxl_domain_restore: Put fd back to blocking mode
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Apr 2010 16:40:06 +0000 (17:40 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Apr 2010 16:40:06 +0000 (17:40 +0100)
commite82f13b13d6b20ec2053a49d3cb02b13fa12e6ff
tree2ef776331c105e1a6709238b29fb9af27f4def43
parenteb67817b1764ae94893684883d92959e71bb7a13
libxl: libxl_domain_restore: Put fd back to blocking mode

libxl_domain_restore calls, indirectly, xc_domain_restore.  The
latter, when doing a live migration, sets the fd from blocking mode
(which it must be on entry, or things go wrong) to nonblocking mode
and leaves it this way.  Arguably this is a bug in libxc, but to avoid
disrupting any callers we fix it in libxl.

So libxl_domain_restore now puts the fd back into blocking mode
before returning.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/libxl/libxl.c